package com.cos.lession49.dao;

import com.cos.lession49.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/3/2 15:53
 * @description:
 */
public interface EmpDao {
    List<Emp> getAll();

    /**
     *
     * @author: COS
     * @return:
     * @time: 2022/3/2 15:59
     * @description: 动态查询
     * 封装数据到Emp对象中
     * ename="zs"
     */
    List<Emp> getEmpByKey(Emp e);

    List<Emp> getEmpByKey2(@Param("esex") String esex,@Param("ename") String ename,@Param("dno") int dno );

    int updateEmp(Emp e);
    int addEmp(Emp e);

    List<Emp> getEmpByKey3(Emp e);
}
